package com.meichis.yndms.adapter;

import android.app.Activity;
import android.content.Context;

import com.meichis.mcsappframework.adapter.recyclerview.MultiItemTypeAdapter;
import com.meichis.yndms.adapter.RecycleViewItemType.*;
import com.meichis.yndms.model.InspectTemplate_Item;

import java.util.List;

public class FillModeRcAdapter extends MultiItemTypeAdapter<InspectTemplate_Item> {
    public final static int REQUEST_TAKEPHOTO = 1;

    public FillModeRcAdapter(Context context, Activity activity, List<InspectTemplate_Item> datas) {
        super(context, datas);
        addItemViewDelegate(new FillMode_TextView(activity, datas));
        addItemViewDelegate(new FillMode_EditText(activity, datas));
        addItemViewDelegate(new FillMode_RadioButton(activity, datas));
        addItemViewDelegate(new FillMode_CheckBox(activity, datas));
        addItemViewDelegate(new FillMode_Switch(activity, datas));
        addItemViewDelegate(new FillMode_Picture(activity, datas));
        addItemViewDelegate(new FillMode_City(context, activity, datas));
        //addItemViewDelegate(new FillMode_Product(context,datas));
        addItemViewDelegate(new FillMode_TDP(context, activity, datas));
    }
}
